package com.example.stormold.serviceimpl;

import com.example.stormold.dao.InfoGetDao;
import com.example.stormold.entity.InfoGet;
import com.example.stormold.service.InfoGetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InfoGetServiceImpl implements InfoGetService {

	@Autowired
	private InfoGetDao infoGetDao;
	
	@Override
	public boolean insert(List<InfoGet> entityList) {
		// TODO 自动生成的方法存根
		boolean flag = false;
		try {
			infoGetDao.insert(entityList);
			flag = true;
			System.out.println("数据写入成功！");
		} catch (Exception e) {
			// TODO: handle exception
			System.out.println("数据写入失败！");
		}
		return flag;
	}

}